package com.hst.web.base.entity;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.hst.core.annotation.Comment;
import com.hst.core.annotation.HSID;
import com.hst.core.dao.BaseEntity;

@Entity
@Table(name = "t_flow_history")
@Comment("流程任务历史表")
@HSID(length = 10, prefix = "F", resetByDay = true)
public class TFlowHistory extends BaseEntity {

	@Id
	@Column(name = "id", length = 10)
	@Comment("ID")
	@GeneratedValue(generator = "hsid")
	@GenericGenerator(name = "hsid", strategy = "com.hst.core.hbm.HSIDGenerator")
	private String id;
	
	@Column(name = "task_id", length = 10)
	@Comment("任务Id")
	private String taskId;

	@Column(name = "userid", length = 10)
	@Comment("处理人")
	private String userid;

	@Column(name = "dt")
	@Comment("处理时间")
	private Timestamp dt;

	@Column(name = "action", length = 10)
	@Comment("处理结果")
	private String action;
	
	@Column(name = "status", length = 50)
	@Comment("处理节点")
	private String status;

	@Column(name = "remark", length = 500)
	@Comment("处理说明")
	private String remark;

	@Column(name = "next", length = 10)
	@Comment("下一步角色")
	private String next;
	
	@Column(name = "role", length = 10)
	@Comment("处理人角色")
	private String role;

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getTaskId() {
		return taskId;
	}

	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public Timestamp getDt() {
		return dt;
	}

	public void setDt(Timestamp dt) {
		this.dt = dt;
	}

	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getNext() {
		return next;
	}

	public void setNext(String next) {
		this.next = next;
	}

	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}

}
